import request from '@/utils/request'

// 查询群发布活动记录列表
export function listRecord(query) {
  return request({
    url: '/group/activityRecord/listPage',
    method: 'post',
    data: query
  })
}

// 查询群发布活动记录详细
export function getRecord(data) {
  return request({
    url: '/group/activityRecord/findDetail',
    method: 'post',
    data: data
  })
}

// 解析记录
export function parseTxt(data) {
  return request({
    url: '/group/activityRecord/parseTxt',
    method: 'post',
    data
  })
}

// 新增群发布活动记录
export function addRecord(data) {
  return request({
    url: '/group/activityRecord/add',
    method: 'post',
    data: data
  })
}

// 修改群发布活动记录
export function updateRecord(data) {
  return request({
    url: '/group/activityRecord/update',
    method: 'post',
    data: data
  })
}

// 删除群发布活动记录
export function delRecord(data) {
  return request({
    url: '/group/activityRecord/deletes',
    method: 'post',
    data: data
  })
}
